package com.weijian.dal.dto.cart;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;



/**
 * 更新购物车请求参数
 * 
 * @author weijian
 */
@Data
public class UpdateCartRequest {
    
    @NotNull(message = "购物车项ID不能为空")
    private Long id;
    
    @Min(value = 1, message = "购买数量至少为1")
    private Integer quantity;
    
    private Boolean selected;
}